package com.ly.datacenter.database.pojo;

/**
 * function:
 * 
 * @author watson email: watson.wu@hotmail.com
 * @date 2009-9-1
 */
public abstract class BaseFieldMetadata {

	private String columnName;
	private String columnTypeName;
	private int precision;
	private boolean primaried;
	private boolean nullable;
	private boolean signed;
	private boolean indexable;

	public BaseFieldMetadata() {
		super();
	}

	public BaseFieldMetadata(String columnName, String columnTypeName,
			int precision, boolean primaried, boolean nullable,
			boolean signed, boolean indexable) {
		this.columnName = columnName;
		this.columnTypeName = columnTypeName;
		this.precision = precision;
		this.primaried = primaried;
		this.nullable = nullable;
		this.signed = signed;
		this.indexable = indexable;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getColumnTypeName() {
		return columnTypeName;
	}

	public void setColumnTypeName(String columnTypeName) {
		this.columnTypeName = columnTypeName;
	}

	public int getPrecision() {
		return precision;
	}

	public void setPrecision(int precision) {
		this.precision = precision;
	}

	public boolean isPrimaried() {
		return primaried;
	}

	public void setPrimaried(boolean primaried) {
		this.primaried = primaried;
	}

	public boolean isNullable() {
		return nullable;
	}

	public void setNullable(boolean nullable) {
		this.nullable = nullable;
	}

	public boolean isSigned() {
		return signed;
	}

	public void setSigned(boolean signed) {
		this.signed = signed;
	}

	public boolean isIndexable() {
		return indexable;
	}

	public void setIndexable(boolean indexable) {
		this.indexable = indexable;
	}

}
